package com.exam.service.impl;

import com.exam.mapper.AdminMapper;
import com.exam.pojo.Admin;
import com.exam.service.AdminService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Resource
    private AdminMapper adminMapper;
    @Override
    public Admin queryByAccount(String account) {
        return adminMapper.queryByAccount(account);
    }

    @Override
    public int updateByUserId(Admin admin) {
        return adminMapper.updateByUserId(admin);
    }
}
